<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="/WEB-INF/jsp/sys/css.jsp"%>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018-7-26
  Time: 0:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>委领导选择页面</title>
    <style>
       .wldcs {
           float: left;
           cursor: pointer;
           width: 30%;
           margin-top: 10px;
           text-align: left;
        }
        span{
            font-size: 16px;
        }
        span:hover{
            background-color: #13b3c2;
            color: white;
        }
        .layui-layer-title {
            text-align: left!important;
            font-size: 20px!important;
        }
    </style>
</head>
<body>
<div  style="text-align: center;padding: 18px;font-size: 14px;font-weight: bolder;    margin-left: 22px;" >
    <div style="text-align: left;cursor: pointer;border-bottom: 1px solid #cccccc;    height: 27px;" >
        <span onclick="changeWld('${infos[0].userCode}','${infos[0].userName}')"> ${infos[0].userName}</span >
    </div >
      <c:forEach items="${infos}" var="info" varStatus="varStatus" begin="1" >
                  <div class = "wldcs " >
                      <span onclick="changeWld('${info.userCode}','${info.userName}')"> ${info.userName}</span >
                  </div >
      </c:forEach>
</div>
</body>
<script >
function changeWld(userCode,userName){
    parent.changeWld(userCode,userName);
    var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
    parent.layer.close(index);
}
</script>
</html>
